﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Asp.Controllers
{
    public class HelloController : Controller
    {
        // GET: Hello
        public ActionResult Index()
        {
            return View();
        }
        
        public ActionResult WelCome(string name = "dunso" ,int numTimes = 1)
        {

            ViewBag.Message = "Welcome to " + HttpUtility.HtmlEncode(name);
            ViewBag.NumTimes = numTimes;
            //return "Welcome to " + Server.HtmlEncode(name);
            return View();
        }
    }
}